.br-menu {
  padding: 0;
  list-style: none;

  & .br-menu__item{
    display: inline-block;
    vertical-align: top;
  }

  &--vertical{
    & .br-menu__item{
      display: block;
      padding: 0 18px;
      text-align: left;

      &.br-submenu{
        height: auto;
      }
    }

    & .br-submenu__container{
      position: static;
      box-shadow: none;

      &.br-submenu__container--outter{
        position: absolute;
      }
    }
  }
}

/*菜单item*/
.br-menu__item{
  list-style: none;
  cursor: pointer;
  margin-bottom: 0 !important;
  color: $text-color;
  height: 30px;
  line-height: 30px;
  padding: 0 18px;
  font-size: 14px;
  text-align: center;
  background: white;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  &--small {
    height: 26px;
    line-height: 26px;
    font-size: 12px;
  }

  &--large {
    height: 36px;
    line-height: 36px;
    font-size: 16px;
  }

  &:hover {
    color: $primary-color;
    background-color: #F3F3F3;
  }

  &--active {
    color: $primary-color;
    background-color: #F3F3F3;
  }

  &--disabled {
    color: #989898;
    background-color: #f1f1f1;
    pointer-events: none;
    cursor: not-allowed;
  }

  & .icon {
    margin-right: 10px;
  }
}

/*二级菜单*/
.br-submenu{
  position: relative;
  overflow: visible;

  &.br-menu__item{
    padding: 0;
  }

  & .br-menu__item{
    display: block;
  }
}
.br-submenu__warpper{
  padding: 0 18px;
}
.br-submenu__title{
  width: calc(100% - 19px);
  display: inline-block;
  vertical-align: top;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;

  &:hover{
    color: $primary-color;
    background-color: #F3F3F3;
  }
}
.icon.br-submenu__icon{
  margin-left: 5px;
  margin-right: 0;
  transition: all 0.2s linear;

  &--active{
    transform: rotate(-180deg);
  }
}

.br-submenu__container .br-menu__item{
  text-align: left;
}
.br-submenu__container{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);

  &.br-submenu__container-active{
    overflow: visible;
  }

  &.br-submenu__container--outter{
    top: 0;
    left: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  }
}
